The U.S. stock index gave up previous gains, with the Dow down 0.02%, the S & P 500 up 0.11%, and the Nasdaq up 0.31%.